package variabilitysmelldetection.plugin.preferences;

import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
import org.eclipse.jface.preference.IPreferenceStore;

import variabilitysmelldetection.plugin.Activator;

/**
 * Class used to initialize default preference values.
 */
public class PreferenceInitializer extends AbstractPreferenceInitializer {

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer#initializeDefaultPreferences()
	 */
	public void initializeDefaultPreferences() {
		IPreferenceStore store = Activator.getDefault().getPreferenceStore();
		store.setDefault(PreferenceConstants.GODMETHOD_NOOR_NMR_THRESHOLD, 2.39);
		store.setDefault(PreferenceConstants.GODMETHOD_MLOC_THRESHOLD,     10.09);
		store.setDefault(PreferenceConstants.GODMETHOD_CYCLO_THRESHOLD,    0.24);
		
		store.setDefault(PreferenceConstants.GODCLASS_LOC_THRESHOLD,   58.53);
		store.setDefault(PreferenceConstants.GODCLASS_NCR_THRESHOLD,   4.41);
		store.setDefault(PreferenceConstants.GODCLASS_CYCLO_THRESHOLD, 0.24);
		store.setDefault(PreferenceConstants.GODCLASS_CBO_THRESHOLD,   2.97);
		
		store.setDefault(PreferenceConstants.SHOTGUNSURGERY_NOA_THRESHOLD, 3.1);
		store.setDefault(PreferenceConstants.SHOTGUNSURGERY_NCR_THRESHOLD, 4.41);
		store.setDefault(PreferenceConstants.SHOTGUNSURGERY_NOO_THRESHOLD, 5.34);
		store.setDefault(PreferenceConstants.SHOTGUNSURGERY_CBO_THRESHOLD, 2.97);
	}

}
